<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("capital:merchantorderaccount:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("capital:merchantorderaccount:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("capital:merchantorderaccount:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">分配订单id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.orderAllotId" placeholder="分配订单id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.orderId" placeholder="订单id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">会员用户名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.memberId" placeholder="会员用户名"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">供应商id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.supplierId" placeholder="供应商id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">工厂id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.factoryId" placeholder="工厂id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单状态:active:活动订单,dead:已作废,finish:已完成,unactive:未激活,cancel:已取消</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.status" placeholder="订单状态:active:活动订单,dead:已作废,finish:已完成,unactive:未激活,cancel:已取消"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单来源'pc','wap','weixin','ios','android','jd','taobao','suning','tmall','erp'</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.source" placeholder="订单来源'pc','wap','weixin','ios','android','jd','taobao','suning','tmall','erp'"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品总值</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.totalAmount" placeholder="商品总值"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">配送费用</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.costFreight" placeholder="配送费用"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">调价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.discount" placeholder="调价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品促销优惠</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.pmtGoods" placeholder="商品促销优惠"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">优惠卷优惠</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.pmtOrder" placeholder="优惠卷优惠"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">随机立减</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.pmtRandom" placeholder="随机立减"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单应付金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.payableAmount" placeholder="订单应付金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单已支付金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.payed" placeholder="订单已支付金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">下单时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.orderCreateTime" placeholder="下单时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">收货时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.receivedTime" placeholder="收货时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.paymentTime" placeholder="支付时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付方式</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.payment" placeholder="支付方式"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否分配 1是0 不是</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.isAllot" placeholder="是否分配 1是0 不是"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">打款状态0: 未打款 1：已打款</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.fundState" placeholder="打款状态0: 未打款 1：已打款"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">打款时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.fundTime" placeholder="打款时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="merchantOrderAccount.createTime" placeholder="单据创建时间"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/capital/merchantorderaccount.js?_${.now?long}"></script>
</body>
</html>